import axios from 'axios'



const service   = axios.create({
    // 移动应用国赛api地址
    // baseURL:'http://124.93.196.45:10001/',
    baseURL:'http://localhost:8080/',
    timeout:2000,
})


service.interceptors.request.use(config=>{
        return config
},error => {
        return Promise.reject(error)
})

service.interceptors.response.use((response)=>{
    if(response.status == 200){
            console.log('请求成功')
    }
    return response
})
export default service
